package com.ls.service;

import com.ls.dao.HandSetMapper;
import com.ls.entity.HandSet;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("handSetService")
public class HandSetServiceImpl implements HandSetService {
    @Resource
    private HandSetMapper handSetMapper;

    @Override
    public List<HandSet> getAll() {
        return handSetMapper.getAll();
    }

    @Override
    public HandSet getHandSetById(Integer id) {
        return handSetMapper.getHandSetById(id);
    }

    @Override
    public int del(Integer id) {
        return handSetMapper.del(id);
    }

    public void setHandSetMapper(HandSetMapper handSetMapper) {
        this.handSetMapper = handSetMapper;
    }
}